from kiwi.ui.delegates import GladeSlaveDelegate
from kiwi.ui.dialogs import warning

from otica.views.baseeditor import BaseEditor
from otica.models.usuarios import Usuario

class   ClienteEditor(BaseEditor):
    
    def __init__(self, excluir):
        BaseEditor.__init__(self,excluir,Usuario,'login')
        
        
        self.editor = ClienteSlave()
        self.attach_slave("editor", self.editor)
        self.editor.focus_toplevel()
        
        
    def on_novo_action__activate(self, action):
        pass

    def on_editar_action__activate(self, action):
        pass
                    
    def on_desfazer_action__activate(self, action):
        pass

    def on_salvar_action__activate(self, action):
        pass
    def on_avancar_action__activate(self, action):
        pass
        
    def on_voltar_action__activate(self, action):
        pass

    def on_primeiro_action__activate(self, action):
        pass

    def on_ultimo_action__activate(self, action):
        pass
        
    def on_excluir_action__activate(self, action):
        pass

class ClienteSlave(GladeSlaveDelegate):
    def __init__(self):
        GladeSlaveDelegate.__init__(self,gladefile="clienteeditor")
    